/*
 * @Author: AskMeWhy
 * @Date: 2020-12-27 11:58:47
 * @Last Modified by: AskMeWhy
 * @Last Modified time: 2020-12-29 20:59:20
 */
const app = getApp();
const { AskComponent } = app._require("common/index");
AskComponent({
    properties: {
        item: {
            type: Object,
            value: {},
        },
    },
    data: {
        show: false,
    },
    methods: {
        toggleCollapse() {
            this.setData({
                show: !this.data.show,
            });
        },
        handleClick(e){
            this.$emit("item-click", this.data.item);
        },
        handleItemClick(e){
            this.$emit("item-click", e.detail);
        }
    },
});
